<div class="Results index">
	<h2><?php __('Brands');?></h2>
	<table cellpadding="6" cellspacing="1">
	<tr>
			<th>#</th>
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th><?php echo $this->Paginator->sort('location');?></th>
		   <th><?php echo $this->Paginator->sort('url');?></th>
		   <th><?php echo $this->Paginator->sort('industry');?></th>	
           <th><?php echo $this->Paginator->sort('Facebook Likes','facebook');?></th>	
		   <th><?php echo $this->Paginator->sort('Twitter Followers','twitter');?></th>	
		   <th><?php echo $this->Paginator->sort('Domain Authority','seomoz');?></th>	
           <th><?php echo $this->Paginator->sort('Alexa Rank','alexa');?></th>	
		   <th><?php echo $this->Paginator->sort('External Links','external');?></th>	
	</tr>
	<?php
	$i = 0;
//    debug($this->params);
	foreach ($Results as $Result):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo (($this->params['paging']['Result']['page']-1) * $this->params['paging']['Result']['options']['limit'])+$i; ?>&nbsp;</td>
		<td><?php echo $Result['Result']['name']; ?>&nbsp;</td>
		<td><?php echo $Result['Result']['location']; ?>&nbsp;</td>
		<td><?php echo $Result['Result']['url']; ?>&nbsp;</td>
		<td><?php echo $Result['Result']['industry']; ?>&nbsp;</td>
        <td><?php echo $Result['Result']['facebook']; ?>&nbsp;</td>
		<td><?php echo $Result['Result']['twitter']; ?>&nbsp;</td>
		<td><?php echo $Result['Result']['seomoz']; ?>&nbsp;</td>
		<td><?php echo $Result['Result']['alexa']; ?>&nbsp;</td>
		<td><?php echo $Result['Result']['external']; ?>&nbsp;</td>
        
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
